home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper UK 157: 25,000 Clip Art Images / Computer Shopper Issue 157 - 25,000 Clip Art Images.iso / slackware / UPGRADE.TXT < prev   
Text File  |  2000-12-07  |  8KB  |  179 lines

  1.  
  2.   22-Oct-1999 NOTE:  If you plan on upgrading from libc5 Slackware to libc6
  3.   Slackware, keep these things in mind:
  4.  
  5.   1)  Old libraries and headers will cause problems.  If you're going to
  6.   install over the top, it's advisable to remove all the old libraries and
  7.   /usr/include headers (and in /usr/X11R6, too) before reinstalling.
  8.  
  9.   2) Old DB files will not be compatible and must be removed.
  10.  
  11.   As always, best results are always achieved by installing from scratch and
  12.   restoring only the old files that you need to keep.
  13.  
  14.   Good luck! :)
  15.  
  16. ------------------------------
  17.  
  18.   24-Aug-95 NOTE: Trying to upgrade to ELF Slackware from a.out Slackware will
  19.   undoubtably cause you all kinds of problems.  Don't do it.
  20.  
  21. ------------------------------
  22.  
  23.   14-Sep-94 NOTE: In my opinion, upgrading through this method is probably
  24.   more trouble than it's worth. For instance, several commonly reported bugs
  25.   are caused by improper upgrading -- mixing disks from different versions of
  26.   the distribution and/or failing to remove old packages first. I think we 
  27.   need to face the fact that things haven't quite settled down yet, and that
  28.   until then it's not always possible to foresee differences in filesystem
  29.   structure, daemons, utilities, etc, that can lead to problems with the
  30.   system.  
  31.  
  32.   The *correct* and best way to upgrade to a new distribution version is to 
  33.   back up everything you want saved and then reinstall from scratch. This is
  34.   especially true for the A and N series disks. If you do upgrade packages from
  35.   one of those disk sets, you should seriously consider which packages from the
  36.   other one might be related somehow and install those too. Again, it can be
  37.   tricky to know just which packages *are* related given the overall complexity
  38.   of the Linux system. That's why unless you really know what you're doing there
  39.   is a substantial risk of screwing up a system while attempting to upgrade it.
  40.  
  41.   Just a fair warning. :^)
  42.  
  43.      -- Pat
  44.  
  45. ------------------
  46.  
  47. One of the most commonly asked questions about Slackware (especially after any
  48. major release) is: How do I upgrade my system?
  49.  
  50. Until recently, it seemed there were two routes you could go. You could
  51. back up everything you wanted to save, and then reinstall from scratch. As
  52. anyone who's done this can attest, it's a tedious process and there's
  53. almost always a couple important files that don't get backed up. The other
  54. option was to install the new packages over the old system. This works, but
  55. any old files that aren't overwritten by new ones will be left in your
  56. filesystem. This wastes space, and makes system administration difficult,
  57. especially when configuration files that are ignored by the new binaries
  58. are left behind.
  59.  
  60. The new versions of 'pkgtool' (a package maintenance tool developed for the
  61. Slackware distribution) should provide a clean upgrade path from earlier
  62. versions of Slackware. Since it can now remove packages from your hard
  63. drive while running on a self-contained Linux filesystem loaded into a
  64. ramdisk, it can remove *any* files from your system, including ones that
  65. were difficult or impossible to remove while running on the
  66. harddrive. Files such as the shell, shared libraries, init, and other
  67. crucial system files.
  68.  
  69. Here's how you'd upgrade to a newer version of Slackware from any previous
  70. version that supports package information files in /var/adm/packages. (If
  71. your system puts these files elsewhere, you might still be able to do this
  72. by creating a symbolic link from the package information directory to 
  73. /var/adm/packages)
  74.  
  75. 1. Back up important files, or take your chances. ;^)
  76.  
  77.    Odds are you'll come through ok. However, there are two important
  78.    exceptions to this rule. The first (and most obvious) is when a package
  79.    overwrites a file you meant to keep with a new one. The second, and 
  80.    possibly more serious situation is when the system needs to replace an
  81.    existing file with a symbolic link. It *will* replace the file, whether
  82.    it's a simple file, a file that's chmoded 444, or a directory filled with
  83.    other subdirectories, each containing part of your Doctoral dissertation.
  84.    So, be careful.
  85.  
  86. 2. Make a list of the packages you plan to replace.
  87.  
  88. 3. Use a bootkernel disk to boot one of the root/install disks. Log in as
  89.    root.
  90.  
  91. 4. Mount your root Linux partitions under /mnt while logged into the
  92.    install disk. The method used here differs depending on what filesystem
  93.    you're using for Linux. Here are some examples:
  94.  
  95.    How to mount an ext2fs partition:
  96.  
  97.    mount /dev/hda1 /mnt -t ext2
  98.      ^^^^^^^^^
  99.      Replace this with the name of your root partition.
  100.  
  101.    Similarly, if the partition was of type xiafs, you would use this command:
  102.  
  103.    mount /dev/hda1 /mnt -t xiafs
  104.  
  105.    If you're using UMSDOS (the system that allows you to install onto an 
  106.    existing MS-DOS filesystem), this is the command you would use:
  107.  
  108.    mount /dev/hda1 /mnt -t umsdos
  109.  
  110.    If you've got other partitions that are part of your Linux filesystem,
  111.    mount them after you've mounted that root partition. The method is the
  112.    same - for example, here's how you'd mount an ext2fs /usr partition:
  113.  
  114.    mount /dev/hda2 /mnt/usr -t ext2
  115.  
  116. 5. Once the partition has been mounted, we need to activate swap space if
  117.    the system has less than 8 MB of memory. (If you have 8 or more MB, you
  118.    may go on to step 6)
  119.  
  120.    You may use either a swap partition or a swapfile. To get a quick listing
  121.    of your partition information, you can always type 'fdisk -l'. Doing this
  122.    on my machine provides the following information:
  123.  
  124.    Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders
  125.    Units = cylinders of 255 * 512 bytes
  126.  
  127.       Device Boot  Begin   Start     End  Blocks   Id  System
  128.       /dev/hda1          10      10      90   10327+   1  DOS 12-bit FAT
  129.       /dev/hda2          91      91    1000  116025    5  Extended
  130.       /dev/hda3   *       1       1       9    1139    a  OPUS
  131.       /dev/hda5   *      91      91    1000  116016+   6  DOS 16-bit >=32M
  132.  
  133.       Disk /dev/hdb: 16 heads, 31 sectors, 967 cylinders
  134.       Units = cylinders of 496 * 512 bytes
  135.  
  136.       Device Boot  Begin   Start     End  Blocks   Id  System
  137.       /dev/hdb1   *       1       1     921  228392+   6  DOS 16-bit >=32M
  138.       /dev/hdb2         922     922     966   11160   82  Linux swap
  139.  
  140.   From this display, you can see that /dev/hdb2 has been designated as the
  141.   Linux swap partition. If the partition has not been previously prepared
  142.   with mkswap, here's how that would be done:
  143.  
  144.   mkswap /dev/hdb2 11160
  145.  
  146.   To activate the swap partition, you would type:
  147.  
  148.   swapon /dev/hdb2
  149.  
  150.   6. Remove the packages! To do this, type 'pkgtool' and select the option 
  151.   remove installed packages. You'll be given a list of packages that you've
  152.   installed - just select the list of packages that you plan to replace.
  153.  
  154.   If you're using one of the full-color versions of pkgtool, you select the
  155.   packages to remove by removing up and down through the list with '+' and
  156.   '-' and toggling packages to remove with the spacebar. Once you've toggled
  157.   all the packages you want to remove, hit ENTER to remove them.
  158.  
  159.   If you're using one of the tty based versions of pkgtool, you'll have to 
  160.   type in the names of the packages you with to remove. Separate each name
  161.   with a space. Don't worry about how long the line ends up - just keep
  162.   typing in the names until you've entered them all, and then hit ENTER to
  163.   remove them.
  164.  
  165. That's it! Now you've cleaned up the old packages and you're ready to install 
  166. the new ones. Type 'setup' and proceed to install the new packages as normal.
  167.  
  168. Although it never hurts to play it safe and remove all packages from the 
  169. bootdisk, almost all of them can be removed using pkgtool from your hard
  170. drive. The A series is the important exception here.
  171.  
  172. I wish everyone good luck with this! :^)
  173.  
  174.  
  175.  
  176. ---
  177. Patrick Volkerding
  178. volkerdi@slackware.com
  179.